//vue.config.js
const {
    defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    devServer: {
        proxy: {
            '/api': {
                // http://psms.linwine.space/api
                // target: 'http://psms.linwine.space/api',
                target: 'http://home.linwine.space:9900/psms',
                changeOrigin: true,
                pathRewrite: { '^/api': '' }
            }, 
            '/qaApi': {
                // target: 'http://home.linwine.space/v1',
                target: 'http://home.linwine.space:9900/v1',
                changeOrigin: true,
                pathRewrite: { '^/qaApi': '' }
            }, 
            '/qaBaseUrl': {
                target: 'http://home.linwine.space:9900/',
                changeOrigin: true,
                pathRewrite: { '^/qaBaseUrl': '' }
            }
            // '/qaApi': {
            //     // target: 'http://home.linwine.space/v1',
            //     target: 'http://home.linwine.space:9900/v1',
            //     changeOrigin: true,
            //     pathRewrite: { '^/qaApi': '' }
            // }, 
        }
    }
})